namespace AvaloniaApplication1.Models;
/// <summary>
/// Modbus数据模型
/// </summary>
public class ModbusData
{
    /// <summary>
    /// 设备ID
    /// </summary>
    public string DeviceId { get; set; }
    /// <summary>
    /// 波特率
    /// </summary>
    public string BaudRate { get; set; }
    /// <summary>
    /// 温度
    /// </summary>
    public string Temperature { get; set; }
    /// <summary>
    /// 湿度
    /// </summary>
    public string Humidity { get; set; }
        
    
    /// <summary>
    /// modbus数据模型
    /// </summary>
    /// <param name="deviceId">设备ID</param>
    /// <param name="baudRate">波特率</param>
    /// <param name="temperature">温度</param>
    /// <param name="humidity">湿度</param>
    public ModbusData(string? deviceId, string? baudRate, string? temperature, string? humidity)
    {
        DeviceId = deviceId;
        BaudRate = baudRate;
        Temperature = temperature;
        Humidity = humidity;
    }
    
}